<?php
namespace V1\Library\Exception;
/**
 * 服务器运行异常错误
 *
 * @property   $name Description
 * 
 * @author wangzhenxian
 * @package application.components 
 */
class InteralServerError extends \Think\Exception {
    public function __construct($message, $code = 0) {
        //parent::__construct("Interal Server Error: {$message}", 500 + $code);
        $result = array("ret" => 500 + $code,"msg" => "{$message}");
        header('Content-Type:application/json; charset=utf-8');
        exit(json_encode($result,0));
    }
}
